/***************************************************************************************************/
/* Kurs-Administration
/***************************************************************************************************/
/* Skriptname: kursangebot.htm
/* Autor : Reto Grütter
/* Datum : 12.11.2002
/* Copyright : 2002 Inetconsult AG
/***************************************************************************************************/
/* INPUT : ---
/* OUTPUT : ---
/***************************************************************************************************/
/*
/***************************************************************************************************/
/* Änderungen:
/***************************************************************************************************/
include("../system/konstant.txt");
include("../system/db_func.php");
include("../system/db_modul_vorlage.php");
/* alle Kurse (Kategorien) auslesen */
$query_select = db_query ("select id
,kurs_titel
,kurs_aufhaenger
,kurs_beschr
,bild
,dokument_file
,ort
,dauer
,preis
,url
from kurse
order by position");
while(list($kurs_id,$kurs_titel,$kurs_aufhaenger,$kurs_beschr,$bild,$dokument_file,$ort,$dauer,$preis,$url) = db_fetch_row($query_select)) {
/* Navigation und Inhalt werden aufbereitet */
if($id == '' or $id == 0) {
if($akt_titel == '') {
$akt_id = $kurs_id;
$akt_titel = stripslashes($kurs_titel);
$akt_aufhaenger = stripslashes($kurs_aufhaenger);
$akt_beschr = stripslashes($kurs_beschr);
$akt_bild = stripslashes($bild);
$akt_doku = stripslashes($dokument_file);
$akt_ort = stripslashes($ort);
$akt_dauer = stripslashes($dauer);
$akt_preis = stripslashes($preis);
$akt_url = stripslashes($url);
}
} else {
if($id == $kurs_id) {
$akt_id = $kurs_id;
$akt_titel = stripslashes($kurs_titel);
$akt_aufhaenger = stripslashes($kurs_aufhaenger);
$akt_beschr = stripslashes($kurs_beschr);
$akt_bild = stripslashes($bild);
$akt_doku = stripslashes($dokument_file);
$akt_ort = stripslashes($ort);
$akt_dauer = stripslashes($dauer);
$akt_preis = stripslashes($preis);
$akt_url = stripslashes($url);
}
}
$arr_kurs_titel[$kurs_id] = stripslashes($kurs_titel);
}
if(substr($akt_url,0,7) != 'http://') $akt_url = 'http://'.$akt_url;
/* und jetzt noch alle Termine zu besagtem Kurs */
$query_sele = db_query ("select datum_von, datum_bis from daten
where status = 'A'
and kategorie_id = $akt_id
order by datum_von");
?>
CompCare das Kursangebot von Paula Ammann
|
|
foreach($arr_kurs_titel as $key => $value) {
if($key == $akt_id) {
?>
|
>
echo $value; ?> |
|
} else { ?>
|
> echo $value; ?> |
|
} ?>
|
|
|
} ?>
|
|
|
|
|
|
|
|
|
echo $akt_titel; ?>
| |
if($akt_bild == '') { ?>
|
} else { ?>
|
} ?>
|
|
echo $akt_aufhaenger; ?> |
|
echo nl2br($akt_beschr); ?>
|
|
|
|
|
|
|
Ort: |
echo nl2br($akt_ort); ?> |
|
|
Datum: |
while(list($datum_von,$datum_bis) = db_fetch_row($query_sele)) {
if($datum_von == '0000-00-00') {
$datum_von = '';
} else {
$datum_von = substr($datum_von,8,2).'.'.substr($datum_von,5,2).'.'.substr($datum_von,0,4);
}
if($datum_bis == '0000-00-00') {
$datum_bis = '';
} else {
$datum_bis = substr($datum_bis,8,2).'.'.substr($datum_bis,5,2).'.'.substr($datum_bis,0,4);
}
if($datum_bis == '') {
$datumstext = $datum_von;
} else {
$datumstext = $datum_von.' - '.$datum_bis;
}
?>
echo $datumstext; ?>
} ?>
|
|
|
Dauer: |
echo $akt_dauer; ?> |
|
|
Preis: |
echo $akt_preis; ?> |
|
|
Anmeldung: |
Zur Anmeldung |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|